package org.pombo.gtb;

import org.pombo.gtm.Game;
import org.pombo.gtm.Node;

import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;

public class GameBuilder extends Builder<Game> {

	@Override
	public void clear() {
		this.entity = mock(Game.class);
	}

	public GameBuilder withRootNode(Node node) {
		when(this.entity.getRootNode()).thenReturn(node);
		return this;
	}

}
